<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
	<span class="color_red">*</span>平台主要成员情况
	<security:authorize ifNotGranted="A_DAILU_PROPOSAL">
		<span style="font-size: 12px; font-weight: normal;">
			（如果您需要修改平台负责人信息， 请保存申请书后点击菜单“管理”>“个人信息维护”完成修改） </span>
	</security:authorize>
</div>
<table id="zh_persons" border="0" cellspacing="0" cellpadding="0"
	class="table01">
	<thead>
		<tr>
			<th nowrap>序号</th>
			<th width="13%">姓名</th>
			<th width="11%">专业</th>
			<th width="11%">出生年月</th>
			<th width="10%">职务/职称</th>
			<th width="10%">学历</th>
			<th width="20%" nowrap="nowrap">项目分工</th>
			<th width="20%">所在单位</th>
		</tr>
	</thead>
	<tbody id="tab">
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/zh_persons/zh_person" var="zh_person">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center"><span
					name="zh_persons/zh_person[${flag}${index}]@seq_no">${index+1}</span>
				</td>
				<td align="center"><span
					name="zh_persons/zh_person[${flag}${index}]/basic_info/zh_name"><x:out
							select="$zh_person/basic_info/zh_name" /></span> <security:authorize
						ifAnyGranted="A_DAILU_PROPOSAL">
						<c:if test="${index==0 }">
								<x:out select="$zh_person/basic_info/psn_code" />
						</c:if>
					</security:authorize></td>
				<td align="center"><span
					name="zh_persons/zh_person[${flag}${index}]/basic_info/major"><x:out
							select="$zh_person/basic_info/major" /></span></td>
				<td align="center"><span
					name="zh_persons/zh_person[${flag}${index}]/basic_info/birthday"><x:out
							select="$zh_person/basic_info/birthday" /></span></td>
				<td align="center"><span
					name="zh_persons/zh_person[${flag}${index}]/basic_info/position"><x:out
							select="$zh_person/basic_info/position" /></span>/<span
					name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_name"><x:out
							select="$zh_person/basic_info/prof_title_name" /></span></td>
				<td align="center"><span
					name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_name"><x:out
							select="$zh_person/basic_info/educate_name" /></span></td>
				<td align="center"><span
					name="zh_persons/zh_person[${flag}${index}]/basic_info/work"><c:choose>
							<c:when test="${index==0}">项目负责人</c:when>
							<c:otherwise>
								<x:out select="$zh_person/basic_info/work" />
							</c:otherwise>
						</c:choose></span></td>
				<td align="center"><span
					name="zh_persons/zh_person[${flag}${index}]/basic_info/org_name"><x:out
							select="$zh_person/basic_info/org_name" /></span></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
<br />
<div class="t_bar">
	<span class="color_red">*</span>负责人简介（限300字）
</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="tblresume" cellspacing="1">
	<tr class="li_2">
		<td>
		<pre><x:out select="$xmlData/data/proposal/goal/resume" /></pre>
		</td>
	</tr>
</table>
<script type="text/javascript">
function selectFirstRadio(obj) {
	$(obj).parent('td').parent('tr').find('input[type="radio"]').attr("checked","checked");
	setSubmitPsn();
}
function checkSubmitPsn(tableId){
	<security:authorize ifNotGranted="A_DAILU_PROPOSAL">
	var tr=$("#"+tableId+" :radio:checked").parents("tr");
	if(tr.length!=0 && tr.get(0).rowIndex==2){
		scmWarn('如果您需要修改平台负责人信息， 请保存申请书后点击菜单“管理”>“个人信息维护”完成修改');
		return false;
	}
	</security:authorize>
	
	return true;
		
}
function psnSynchro(){
	$("span[name$='fzr_psnname']").text($("#zh_persons tr:eq(2)").find("span[name$='basic_info/zh_name']").text());
	$("span[name$='fzr_tel']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/tel_work']").val());
	$("span[name$='fzr_mobile']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/mobile']").val());
	$("span[name$='fzr_mail']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/email']").val());
}
</script>